g_free (data);
}
-static gboolean
-plane_configure (GtkWidget *widget,
- GdkEventConfigure *event)
+static void
+plane_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation)
{
+ GTK_WIDGET_CLASS (gtk_color_plane_parent_class)->size_allocate (widget, allocation);
+
create_surface (GTK_COLOR_PLANE (widget));
- return TRUE;
}
static void
object_class->set_property = plane_set_property;
widget_class->draw = plane_draw;
- widget_class->configure_event = plane_configure;
+ widget_class->size_allocate = plane_size_allocate;
widget_class->key_press_event = plane_key_press;
g_object_class_install_property (object_class,
* when the widget is instantiated on a particular display.
* (Create GDK resources in response to this signal.)
*
- * - The #GtkWidget::configure-event signal to take any necessary
+ * - The #GtkWidget::size-allocate signal to take any necessary
* actions when the widget changes size.
*
* - The #GtkWidget::draw signal to handle redrawing the